package com.zxl.admin.controller.shop;

import com.zxl.admin.service.ShopService;
import com.zxl.common.Result;
import com.zxl.common.model.bo.role.RoleAdd;
import com.zxl.common.model.bo.shop.ShopAdd;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * @author zxw
 * @date 2023/5/10
 */
@Api(tags = "店铺管理")
@RestController
@RequestMapping("/admin/shop")
public class ShopController {
    @Resource
    private ShopService shopService;


    @PostMapping("/add")
    @ApiOperation("店铺新增")
    public Result add(@RequestBody @Valid ShopAdd shopAdd){
        shopService.add(shopAdd);
        return Result.success();
    }
}
